from django.db import models

# Create your models here.


class Templates(models.Model):
    name = models.CharField(max_length=128)
    desc = models.CharField(max_length=128)
    is_available = models.BooleanField(default=False)
    is_public = models.BooleanField(default=False)
    pic_path = models.CharField(max_length=128)
    model_path = models.CharField(max_length=128)
    user_nickname = models.CharField(max_length=128)
    user_openid = models.CharField(max_length=128)


class Users(models.Model):
    openid = models.CharField(max_length=128)
    img_remain = models.IntegerField()
    template_remain = models.IntegerField()

